﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Taobao.Tools2.Domain.EntityFramework.Mappings;

namespace Taobao.Tools2.Domain.EntityFramework
{
    public class RefundMapping:ModelMapping<Refund>
    {
        public RefundMapping()
            : base()
        {
            Map(d => d.ToTable("Refund"));
            Property(c => c.RefundID).HasColumnName("RefundID");
            Property(c => c.TradeID).HasColumnName("TaobaoID");
            Property(c => c.Created).HasColumnName("Created");
            Property(c => c.Status).HasColumnName("Status");
            Property(c => c.Modified).HasColumnName("Modified");
            Property(c => c.RefundFee).HasColumnName("Refundfee");
            Property(c => c.TotalFee).HasColumnName("Totalfee");
            Property(c => c.Title).HasColumnName("Title");
            Property(c => c.OuterID).HasColumnName("OuterID");
            Property(c => c.ItemNumID).HasColumnName("ItemNumID");
            Property(c => c.ShopID).HasColumnName("Shop");
            
            Property(c => c.ID).HasColumnName("ID");
            HasKey(c => c.ID);

            //Property(c => c.AdminName).HasColumnName("adminname");
            //Property(c => c.DdStatus).HasColumnName("ddstatus");
            //Property(c => c.MakeSurePayTime).HasColumnName("makesurepaytime");
            //Property(c => c.ReadCFlag).HasColumnName("readCflag");
            //Property(c => c.ReadSFlag).HasColumnName("readSflag");    
        }
    }
}
